import service from '@/utils/request'

export const createOdsOdb = (data) => {
  return service({
    url: '/odsOdb/createOdsOdb',
    method: 'post',
    data
  })
}

export const deleteOdsOdb = (data) => {
  return service({
    url: '/odsOdb/deleteOdsOdb',
    method: 'delete',
    data
  })
}

export const deleteOdsOdbByIds = (data) => {
  return service({
    url: '/odsOdb/deleteOdsOdbByIds',
    method: 'delete',
    data
  })
}

export const updateOdsOdb = (data) => {
  return service({
    url: '/odsOdb/updateOdsOdb',
    method: 'put',
    data
  })
}

export const findOdsOdb = (params) => {
  return service({
    url: '/odsOdb/findOdsOdb',
    method: 'get',
    params
  })
}

export const getOdsOdbList = (params) => {
  return service({
    url: '/odsOdb/getOdsOdbList',
    method: 'get',
    params
  })
}

export const getAllOdsOdb = (params) => {
  return service({
    url: '/odsOdb/getAllOdsOdb',
    method: 'get',
    params
  })
}

export const testOdsOdb = (data) => {
  return service({
    url: '/odsOdb/testOdsOdb',
    method: 'post',
    data
  })
}
